package com.llmcu.source.javase.objectoriented.keywords.modifer2;

import com.llmcu.source.javase.objectoriented.keywords.modifier.SomeClass;

/**
 * 非子类，非同一package下的类，只能访问public修饰的类成员
 *
 * @author liuling
 * @date 2024/10/6 23:07
 */
public class SomeClass2 {
    public void foo(){
        SomeClass someClass = new SomeClass();
        System.out.println(someClass.height);
        System.out.println(someClass.getHeight());
    }
}
